package com.fmy.springbootutils.unusual;

import com.fmy.response.specs.IEnum;

/**
 * @author Mr.fmy
 * @version 1.0.0
 * @ClassName BusinessException.java
 * @Description 自定义业务异常类
 * @createTime 2019年05月25日 09:27:00
 */
public class BusinessException extends RuntimeException {

    private IEnum iEnum;

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(IEnum iEnum, String message) {
        super(message);
        this.iEnum = iEnum;
    }

    public IEnum getiEnum() {
        return iEnum;
    }
}
